import { Component } from '@angular/core';
import { NavController, NavParams, IonicPage } from 'ionic-angular';
import { HttpServiceProvider } from '../../providers/http-service/http-service';

@IonicPage()
@Component({
  selector: 'page-wallet',
  templateUrl: 'wallet.html'
})
export class WalletPage{

  data: any

  constructor(public navCtrl: NavController, 
              public navParams: NavParams,
              public http: HttpServiceProvider) {
    this.myWallet()
    
  }

  myWallet(){
    this.http.mewallet((result)=>{
      if(result)
        this.data = result.list
        console.log(this.data)
    })
  }

  tixian(){
  	this.navCtrl.push('TixianPage')
  }

  chongzhi(){
  	this.navCtrl.push('ChongzhiPage')
  }

}
